package ooExercise.ooday01;

public class Student {
    /*
    String name;
    int age;
    String className;
    String stuId;
    Student(){
    }
    Student(String name,int age,String className,String stuId){
        this.name=name;
        this.age=age;
        this.className=className;
        this.stuId=stuId;
    }
    void study(){
        System.out.println(name+"在干饭...");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+",今年"+age+"岁了，所在班级为："+
                className+"班,学号为："+stuId);
    }
    void playWhith(String anotherName){
        System.out.println(name+"正在和"+anotherName+"一起干饭...");
    }

     */
    String name1;
    int age1;
    String className1;
    String stuId1;

    Student(){
    }
    Student(String name1,int age1,String className1,String stuId1){
        this.name1=name1;
        this.age1=age1;
        this.className1=className1;
        this.stuId1=stuId1;
    }
    void study(){
        System.out.println(name1+"在学习...");
    }
    void styHi(){
        System.out.println("大家好，我叫："+name1+"今年"+age1+"岁了,所在班级为："+className1+"班,学号为："+stuId1);
    }
    void play(String anothName){
        System.out.println(name1+"正在和"+anothName+"一起学习...");
    }
}
